package com.jaws.core.configuration;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * mvc配置类
 * @author maojian
 * @date 2018-03-12 08:56:12
 * @since v1.0.0
 */
@ConfigurationProperties(prefix = MvcProperties.PREFIX)
@Data
public class MvcProperties {
	
	public static final String PREFIX = "jaws.mvc";
	
	private String swaggerBasepackage = "com";
	
	private String swaggerServiceName;
	
	private String swaggerServiceDeveloper;
	
	private String swaggerServiceDescription;

	private String swaggerServiceVersion;

	private List<JawsException> exceptions = new ArrayList<>();

	@Data
	public static class JawsException {
		
		private Class<?> superClass;

		private String code;

		private String message;
	}
}
